import 'dart:async';

import 'package:flutter/services.dart';
import 'package:photographWatermark/phtho_graph_take.dart';

class PhotographWatermark {
  static const MethodChannel _channel =
      const MethodChannel('ktx.com.photographWatermark');

  static Future<String> get platformVersion async {
    final String version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  static Future<String> photograph(PhotoOptions options) async {
    String path =
        await _channel.invokeMethod('takePhoto', options.toJson());
    print(path);
    return path;
  }
}
